﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys.WMS.Entity;

/// <summary>
/// 库存实体.
/// </summary>
[SugarTable("wms_busi_stock", "库存")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiStockEntity : CLDEntityBase
{
    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId", ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName", ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 库位id.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId", ColumnDescription = "库位id")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位code.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode", ColumnDescription = "库位code")]
    public string LocationCode { get; set; }

    /// <summary>
    /// 库位名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationName", ColumnDescription = "库位名称")]
    public string LocationName { get; set; }

    /// <summary>
    /// 库位类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationType", ColumnDescription = "库位类型")]
    public string LocationType { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty", ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 托盘号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PalletNo", ColumnDescription = "托盘号")]
    public string PalletNo { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNo", ColumnDescription = "批次号")]
    public string BatchNo { get; set; }

    /// <summary>
    /// 最小单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_Unit", ColumnDescription = "最小单位")]
    public string Unit { get; set; }

    /// <summary>
    /// 条码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Barcode", ColumnDescription = "条码")]
    public string Barcode { get; set; }

    /// <summary>
    /// Site.
    /// </summary>
    [SugarColumn(ColumnName = "F_Site", ColumnDescription = "Site")]
    public string Site { get; set; }

    /// <summary>
    /// 生产日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProduceDate", ColumnDescription = "生产日期")]
    public DateTime? ProduceDate { get; set; }

    /// <summary>
    /// 供应商id.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierId", ColumnDescription = "供应商id")]
    public string SupplierId { get; set; }

    /// <summary>
    /// 供应商code.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierCode", ColumnDescription = "供应商code")]
    public string SupplierCode { get; set; }

    /// <summary>
    /// 供应商名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_SupplierName", ColumnDescription = "供应商名称")]
    public string SupplierName { get; set; }

}